<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <style>
        .slide {
            width: 200px;
            background-color: blue;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            margin-left: -160px;
            transition: all 2s;
        }

        .slide:hover {
            margin-left: -7px;
        }
    </style>
    <p class="slide">
        滑动标签
    </p>
    <p class="slide">
        滑动标签
    </p>
    <p class="slide">
        滑动标签
    </p>
    <p class="slide">
        滑动标签
    </p>
    <p class="slide">
        滑动标签
    </p>

</body>

</html>